import axios from 'axios'
// 设置基准路径
axios.defaults.baseURL = 'http://localhost:8888/api'
// 获取商品列表数据
export const getgoods = pageindex => axios.get(`/getgoods?pageindex=${pageindex}`).then(res => res.data)
// 获取商品详情
export const getinfo = id => axios.get(`/goods/getinfo/${id}`).then(res => res.data)
// 图文介绍
export const getdesc = id => axios.get(`/goods/getdesc/${id}`).then(res => res.data)
